<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8' />
    <meta name='viewport' content='width=device-width, initial-scale=1.0' />
    <title>Document</title>
    <script src='../js/vue.js'></script>
</head>

<body>
    <div id='root'>
        <h1>当前的N值是：{{n}}</h1>
        <div v-if="n===1">Angular</div>
        <div v-else-if="n===2">React</div>
        <div v-else-if="n===3">Vue</div>
        <div v-else>Your</div>
        <h3 v-show="false">{{city}}</h3>

        <template v-if="n===1">
            <h2>北京</h2>
            <h2>上海</h2>
        </template>
    </div>
    <script>
        const vm = new Vue({
            el: '#root',
            data: {
                city: '北京',
                n: 0,
            },
        });
    </script>
</body>

</html>